import { ApiProperty, PartialType } from '@nestjs/swagger';
import { CreateDraftDto } from './create-draft.dto';
import { IsNotEmpty } from 'class-validator';

export class UpdateDraftDto extends PartialType(CreateDraftDto) {

  @ApiProperty({ name: '用户id', type: Number })
  @IsNotEmpty({ message: '用户id不能为空' })
  id: number;

}
